Install the spmBatFoam 
1. Copy the spmBatFoam solver into "~/OpenFOAM/username-7/applications/solvers/".
2. Using command terminal locate this open this folder and type "wmake".

Running the case files:
1. Copy the Case file spmodel into run folder.
2. Locate this folder using terminal "~/OpenFOAM/arham-7/run/spmodel".
3. Type "spmBatFoam" and hit enter to run the solver
4. Type and run paraFoam.
5. Mark Cp and Cn in paraview volumeFields.
6. Use the following filters with configuration ExtractBlock(surfacen)>ExtractSurface>Plot data over time
7. Display the data in a spreadsheet and export the data of surfacen in a spreadsheet.
8. Likewise do for surfacep.
9. Extract Columns of etap etan Up and Un.
10. Use them to evaluate Cell voltage V= Up-Un-etap-etan.
11. Also copy the time column to evaluate cell capacity.
12. Plot Cell Voltage vs Cell Capacity in the spreadsheet.

